package com.onstar.cn;

import android.content.Context;

/**
 * Created by kai zhang on 2016/1/25.
 */
public class Utils {
    public static int getDrawableIdByDynamic(Context context, String name) {
        return context.getResources().getIdentifier(name, "drawable", "com.shanghaionstar");
    }

    public static int getStringIdByDynamic(Context context, String name) {
        return context.getResources().getIdentifier(name, "string", "com.shanghaionstar");
    }
    
    public static int getArrayIdByDynamic(Context context, String name) {
    	return context.getResources().getIdentifier(name, "array", "com.shanghaionstar");
    }
    
//    public static int getArrayIdByDynamic(Context context, String name) {
//    	return context.getResources().getIdentifier(name, "array", "com.shanghaionstar");
//    }
    
}
